//
//  Constants.m
//  insyte
//
//  Created by Vu Dang Tuan on 6/18/15.
//  Copyright (c) 2015 Robert. All rights reserved.
//

#import "Constants.h"

@implementation Constants
// app
//NSString *const ServerAddress = @"https://instyle.herokuapp.com";
NSString *const SERVER_ADDRESS = @"http://ynghia.info:3045";
NSString *const LOGIN_WITH_EMAIL = @"/local/login";
NSString *const REGISTER_WITH_EMAIL = @"/register/email";
NSString *const AUTH_WITH_FACEBOOK = @"/auth/facebook/token";
NSString *const AUTH_WITH_PHONE = @"/register/phone";
NSString *const LOGIN_WITH_PHONE = @"/phone/login";

// strings
NSString *const CONNECTION_FAILD_LABEL = @"Connection Failed";
NSString *const APP_TITLE_LABEL = @"Insyte";
NSString *const CONFIRMATION_TITLE_LABEL = @"Confirm!";
NSString *const CANCEL_LABEL = @"Cancel";
NSString *const OK_LABEL = @"OK";
NSString *const PASSWORD_LENGHT = @"Passwords must be at least 6 characters";
NSString *const PASSWORD_NOT_MATCH = @"Password does not match the confirm password";
NSString *const INVALID_EMAIL = @"Invalid email address";
NSString *const KEYCHAIN_LOGIN_KEYWORD = @"InsyteLogin";


// images
NSString *const NavigationBarLogo = @"ic_logo_nav";
NSString *const Ic_Check = @"ic_check";
NSString *const Ic_Un_Check = @"ic_un_check";
NSString *const Ic_Back = @"ic_back";
NSString *const Ic_Small_Email = @"ic_small_email";

NSString *const Ic_Picker_Close = @"ic_picker_close";
NSString *const Ic_Picker_Ok = @"ic_picker_ok";
NSString *const Ic_Arrow_Down = @"ic_arrow_down";


// CODE
int const CODE_SUCCESS = 1;
int const CODE_UNAUTHORIZED = 2;
int const CODE_ERROR = -100;
int const CODE_MISS_PARAMETER = 3;
int const CODE_BAD_REQUEST = 4;
int const CODE_REJECT = 5;
int const CODE_TOKEN_EXPIRE = 6;

@end
